package controllers

import (
	"github.com/gin-gonic/gin"
	"github.com/shenyisyn/goft-gin/goft"
)

type IndexController struct {
	Ctrl *CommonController `inject:"-"`
}

func (i *IndexController) Build(goft *goft.Goft) {

}
func (i *IndexController) Index(ctx *gin.Context) goft.Json {
	return i.Ctrl.Index(ctx)
}
func (i *IndexController) Name() string {
	return "IndexController"
}

func NewIndexController() *IndexController {
	return &IndexController{}
}
